<script>
	import LoginUtil from '@/common/LoginUtil.js'
	import constant from '@/common/constant.js'
	import ConfigUtil from '@/common/ConfigUtil.js';
	import HttpUtil from '@/common/HttpUtil.js';
	import toast from '@/common/ToastUtil.js';
	uni.$http = HttpUtil;
	uni.$constant = constant;
	uni.$toast = toast;

	export default {
		globalData: {
			webUrl: '',
			webTitle: '',
			chatUserId: '',
			chatTxCode: '',
			callerId: '',
			timeCall: {},
			versionName: '',
			openTicketMin: false,
			ticketStartTime: 0,
			ticketTotalTime: 180,
			deviceModel: '',
		},
		onLaunch: function() {
			uni.$online = constant.online;
			uni.getSystemInfo({
				success: (e) => {
					this.globalData.deviceModel = e.brand + '/' + e.deviceModel;
				}
			})
			ConfigUtil.checkUpdate();
			LoginUtil.loginOnce()
		},

		methods: {}
	}
</script>

<style lang="scss">
	@import 'static/css/globa.scss';

	page {
		position: relative;
		height: 100vh;
		overflow: hidden;
		background-color: #f9f9f9;
	}

	// page::before {
	// 	content: '';
	// 	background-image: url('@/static/img/bg_header2.png');
	// 	//background-image: url('https://zhiyuapp.oss-cn-fuzhou.aliyuncs.com/uniapp_android/image/test/background.png');
	// 	position: absolute;
	// 	top: 0rpx;
	// 	height: 292rpx;
	// 	width: 100%;
	// 	right: 0rpx;
	// 	// bottom: 0rpx;
	// 	left: 0rpx;
	// 	background-size: cover;
	// 	background-clip: padding-box;
	// 	// filter: blur(16rpx);
	// 	// overflow: hidden;
	// 	background-blend-mode: darken;
	// 	z-index: -1;
	// 	transform: scale(1.4);
	// }
</style>